﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserControl/MasterPage.Master"
    AutoEventWireup="true" CodeBehind="TimKiemNangCao.aspx.cs" Inherits="TMDT_Nhom1A.San_Pham.TimKiemNangCao" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="tk" %>
<%@ Register Src="../UserControl/GioHang.ascx" TagName="GioHang" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <uc1:GioHang ID="GioHang1" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <tk:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </tk:ToolkitScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <div class="module_round_box_inner">
                <div class="module_round_box_inner2">
                    <div class="s5_mod_h3_1">
                        <div class="s5_mod_h3_2">
                            <h3 class="s5_mod_h3">
                                <span class="s5_h3_first">Tìm kiếm nâng cao</span>
                            </h3>
                        </div>
                    </div>
                    <div id="Div1" runat="server" style="padding-top: 10px; padding-bottom: 10px">
                        <div class="label_register">
                            <asp:Label ID="Label26" runat="server" Text="Label"> Tìm kiếm :</asp:Label>
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox ID="tbsearch" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                        </div>
                        <div class="label_register">
                        </div>
                        <div class="textbox_register">
                            <asp:CheckBox ID="cbcheck" runat="server" />
                            <asp:Label ID="Label2" runat="server" Text="Label"> Tìm kiếm chính xác </asp:Label>
                        </div>
                        <div class="label_register">
                            <asp:Label ID="Label23" runat="server" Text="Label"> Cách tìm kiếm :</asp:Label>
                        </div>
                        <div class="textbox_register">
                            <asp:DropDownList ID="dlKindOfSearch" CssClass="tb_2" runat="server">
                                <asp:ListItem Text="Tất cả"></asp:ListItem>
                                <asp:ListItem Text="Tên sản phẩm"></asp:ListItem>
                                <asp:ListItem Text="Mô tả sản phẩm"></asp:ListItem>
                            </asp:DropDownList>
                        </div>
                        <div class="label_register">
                            <asp:Label ID="Label1" runat="server" Text="Label"> Giá từ :</asp:Label>
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox ID="tbMinPrice" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                            <tk:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="tbMinPrice"
                                FilterType="Numbers" runat="server">
                            </tk:FilteredTextBoxExtender>
                        </div>
                        <div class="label_register">
                            <asp:Label ID="Label3" runat="server" Text="Label"> Giá đến :</asp:Label>
                        </div>
                        <div class="textbox_register">
                            <asp:TextBox ID="tbMaxPrice" Width="200px" CssClass="tb_2" runat="server"></asp:TextBox>
                            <tk:FilteredTextBoxExtender ID="FilteredTextBoxExtender2" TargetControlID="tbMaxPrice"
                                FilterType="Numbers" runat="server">
                            </tk:FilteredTextBoxExtender>
                        </div>
                        <div class="label_register">
                            <asp:Label ID="Label6" runat="server" Text="Label"> Loại tiền :</asp:Label>
                        </div>
                        <div class="textbox_register">
                            <asp:DropDownList ID="dlCurrency" CssClass="tb_2" runat="server">
                            </asp:DropDownList>
                        </div>
                        <div class="label_register">
                            <asp:Label ID="Label4" runat="server" Text="Label"> Loại sản phẩm :</asp:Label>
                        </div>
                        <div class="textbox_register">
                            <asp:DropDownList ID="dlParentCatalogue" CssClass="tb_2" runat="server">
                            </asp:DropDownList>
                        </div>
                        <div class="label_register">
                            <asp:Label ID="Label5" runat="server" Text="Label"> Hãng sản xuất :</asp:Label>
                        </div>
                        <div class="textbox_register">
                            <asp:DropDownList ID="dlBrand" CssClass="tb_2" runat="server">
                            </asp:DropDownList>
                        </div>
                        <div class="label_register">
                        </div>
                        <div class="textbox_register">
                            <asp:ImageButton ID="imSearch" ToolTip="Tìm kiếm" ImageUrl="~/images/search-icon.png"
                                runat="server" OnClick="imSearch_Click" />
                            <asp:UpdateProgress ID="UpdateProgress1" runat="server">
                                <ProgressTemplate>
                                    Đang lấy dữ liệu từ server...
                                    <img src="../images/ajax-loader.gif" />&nbsp;&nbsp;
                                </ProgressTemplate>
                            </asp:UpdateProgress>
                        </div>
                    </div>
                </div>
            </div>
            <div runat="server" visible="false" id="ResultSearch" class="module_round_box_inner">
                <div class="module_round_box_inner2">
                    <div class="s5_mod_h3_1">
                        <div class="s5_mod_h3_2">
                            <h3 class="s5_mod_h3">
                                <span class="s5_h3_first">Kết quả tìm kiếm :
                                    <asp:Label ID="lbresultcount" runat="server"> </asp:Label>
                                    sản phẩm</span>
                            </h3>
                        </div>
                    </div>
                    <asp:DataList ID="dlresultproducts" runat="server" RepeatColumns="3" RepeatDirection="Horizontal">
                        <ItemTemplate>
                            <div style="text-align: center; width: 225px; cursor: default !importance">
                                <div class="s5_vm_name">
                                    <%--<a>
                                        <asp:LinkButton ID="lbLinkToDetail" CommandName="lbLinkToDetail" CommandArgument='<%# Eval("ElectricDevice_ID") %>'
                                            runat="server"><%# Eval("ElectricDevice_ID") %></asp:LinkButton>
                                    </a>--%>
                                    <a href='<%# "ChiTietSanPham.aspx?ElectricDeviceID=" + Eval("ElectricDevice_ID") %>'>
                                        <%# Eval("ElectricDevice_ID") %></a>
                                    <br>
                                </div>
                                <div class="s5_vm_image">
                                    <a href='<%# "ChiTietSanPham.aspx?ElectricDeviceID=" + Eval("ElectricDevice_ID") %>'>
                                        <asp:Image ID="Image1" runat="server" ImageUrl='<%# Eval("ImagePath","../images/{0}") %>' />
                                    </a>
                                </div>
                                <div style="clear: both">
                                </div>
                                <div class="s5_vm_price">
                                    <p>
                                        Số lượng :
                                        <asp:Label ID="Label2" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label></p>
                                    <div id="nondel" runat="server">
                                        <p>
                                            Giá bán lẽ
                                            <asp:Label ID="lbRetailPrice" runat="server" Text='<%# Eval("RetailPrice") %>' Font-Bold="true"
                                                ForeColor="Red"></asp:Label>
                                            <asp:Label ID="Label3" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                        <p>
                                            Giá sĩ:
                                            <asp:Label ID="lbDealerPrice" runat="server" Text='<%# Eval("DealerPrice") %>' Font-Bold="true"
                                                ForeColor="Red"></asp:Label>
                                            <asp:Label ID="Label5" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </div>
                                    <div id="del" runat="server" visible="false">
                                        <p>
                                            Giá bán lẽ: <del>
                                                <asp:Label ID="Label8" runat="server" Text='<%# Eval("RetailPrice") %>' Font-Bold="true"
                                                    ForeColor="Red"></asp:Label></del>
                                            <asp:Label ID="Label9" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                        <p>
                                            Giá sĩ:<del>
                                                <asp:Label ID="Label10" runat="server" Text='<%# Eval("DealerPrice") %>' Font-Bold="true"
                                                    ForeColor="Red"></asp:Label></del>
                                            <asp:Label ID="Label11" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </div>
                                    <p runat="server" id="pNonDiscountPrice" visible="false">
                                        Giá coupon :
                                        <asp:Label ID="lbNonDiscountPrice" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                                        <asp:Label ID="Label6" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </p>
                                    <p runat="server" id="pPriceCoupon" visible="false">
                                        Giá coupon giảm :
                                        <asp:Label ID="lbDiscountPrice" runat="server" Font-Bold="true" ForeColor="Red"></asp:Label>
                                        <asp:Label ID="Label7" runat="server" Text='<%# Eval("Currency_ID") %>'> </asp:Label></p>
                                    </p>
                                </div>
                                <div class="s5_vm_add_to_cart">
                                    <p>
                                        Mua :
                                        <asp:TextBox ID="tbquantity" runat="server" Width="40px"></asp:TextBox>
                                        <tk:FilteredTextBoxExtender ID="FilteredTextBoxExtender1" TargetControlID="tbquantity"
                                            FilterType="Numbers" runat="server">
                                        </tk:FilteredTextBoxExtender>
                                        <asp:Button ID="Button1" CommandArgument='<%# Eval("ElectricDevice_ID")%>' CommandName="AddToCart"
                                            CssClass="addtocart_button" runat="server" Text="Thêm vào Giỏ" OnClientClick="if(!confirm('Bạn có muốn xóa sản phẩm này không ?')) return false;" />
                                    </p>
                                </div>
                            </div>
                        </ItemTemplate>
                    </asp:DataList>
                </div>
            </div>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
